﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using WhatIf.Actions;

namespace WhatIf.Actions
{
    public class ExcelExportAction : BaseAction{
        private string _fileName;
        private WhatIfProject _project;
        private List<string> _hideCols = new List<string>();
        public ExcelExportAction(string fileName, WhatIfProject project, List<string> cols)
        {
            _fileName = fileName;
            _project = project;
            _hideCols = cols;
        }

        public override void Run(){
            _processController.Message = "导出Excel...";
            DataAccess.CSVHelper.ExportWhatIfProjectToExcel(_fileName, _project, _hideCols);
        }
    }
}
